package com.eeprint.system.mapper.platform;


import com.eeprint.system.domain.platform.PlatformTenant;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PlatformTenantMapper {

    //租户列表，下标，数据量
    public List<PlatformTenant> findTenants(int index, int limit);
    //租户总数
    public int countTenants();
    //添加租户
    public void addTenant(PlatformTenant platformTenant);
    //更新租户
    public void updateTenant(PlatformTenant platformTenant);

    /**
     * 通过终端登录码查询租户
     * @param tenantTerminalCode 终端登录码
     * @return 租户信息
     * @author samven
     */
    public PlatformTenant selectTenantByTerminalCode(String tenantTerminalCode);
}
